#ifndef _SOCKET_H_
#define _SOCKET_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <pthread.h>
#include <time.h>
#include <pthread.h>

// 函数声明
int placePiece(int row, int col, int pieceNumber);
int getPiece(int row, int col);
int isBoardFullyFilled(void);
int verifyBoardWithAnswer(const char *answer);
void *listenBoardStatus(void *arg);
int fillBoardWithQuestion(const char *question);
char *parse_json_to_c_string(const char *json_data);
int SocketTask(void);
int StartSocketTask(void);

#endif // CHESS_BOARD_H